package com.prs.crm.domain.ca.work;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-3-28 15:04:16 采购申请明细
 */
@Entity
@Table(name = "ca_purchaseapplydetail")
public class PurchaseAppplyDetail extends BaseEntity {

	private static final long serialVersionUID = -6100615651692899846L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 物品类别
	 */
	@ManyToOne
	private ArticleTypes articletype;
	/**
	 * 品名
	 */
	private String articleName;
	/**
	 * 规格
	 */
	private String articleStandard;
	/**
	 * 数量
	 */
	private Integer articleNumber;
	/**
	 * 单位
	 */
	private String articleUnit;
	/**
	 * 单价
	 */
	private String price;
	/**
	 * 金额
	 */
	private String money;
	@ManyToOne
	private PurchaseApply purchaseApply;

	public PurchaseApply getPurchaseApply() {
		return purchaseApply;
	}

	public void setPurchaseApply(PurchaseApply purchaseApply) {
		this.purchaseApply = purchaseApply;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ArticleTypes getArticletype() {
		return articletype;
	}

	public void setArticletype(ArticleTypes articletype) {
		this.articletype = articletype;
	}

	public String getArticleName() {
		return articleName;
	}

	public void setArticleName(String articleName) {
		this.articleName = articleName;
	}

	public String getArticleStandard() {
		return articleStandard;
	}

	public void setArticleStandard(String articleStandard) {
		this.articleStandard = articleStandard;
	}

	public Integer getArticleNumber() {
		return articleNumber;
	}

	public void setArticleNumber(Integer articleNumber) {
		this.articleNumber = articleNumber;
	}

	public String getArticleUnit() {
		return articleUnit;
	}

	public void setArticleUnit(String articleUnit) {
		this.articleUnit = articleUnit;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
}
